"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    /**
     * Add seed commands here.
     *
     * Example:
     * await queryInterface.bulkInsert('People', [{
     *   name: 'John Doe',
     *   isBetaMember: false
     * }], {});
     */

    await queryInterface.bulkInsert("Menus", [
      {
        id: 13,
        menuType: 0,
        parentId: 0,
        title: "课程管理",
        name: "Learn",
        path: "/learn",
        rank: 99,
        icon: "ri:book-read-fill",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        id: 14,
        menuType: 0,
        parentId: 13,
        title: "课程分类",
        name: "Category",
        path: "/learn/category/index",
        rank: 99,
        icon: "ri:line-height",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        id: 17,
        menuType: 0,
        parentId: 13,
        title: "课程管理",
        name: "Courses",
        path: "/learn/courses/index",
        rank: 99,
        icon: "ep:discount",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        id: 18,
        menuType: 0,
        parentId: 13,
        title: "课程章节",
        name: "Chapters",
        path: "/learn/chapters/index",
        rank: 99,
        icon: "ri:bar-chart-fill",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        id: 361955328,
        menuType: 0,
        parentId: 13,
        title: "文章管理",
        name: "Articles",
        path: "/learn/articles/index",
        rank: 99,
        icon: "ri:book-read-line",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
    ]);
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  },
};
